//
//  ConsumePoolView.swift
//  LeGou
//
//  Created by lxm on 2022/7/27.
//

import UIKit

class ConsumePoolView: ZMXIBView {

    //MARK: --------------------属性--------------------
    var estimateHeight : CGFloat {
        get {
            return 72
        }
    }
    //MARK: --------------------UI控件--------------------
    @IBOutlet weak var contentV: UIView!
    
    @IBOutlet weak var money: UILabel!
    //MARK: --------------------生命周期--------------------
    override init(frame: CGRect) {
        super.init(frame: frame)
        setUI()
        bindAction()
        addConstraints()
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        setUI()
        bindAction()
        addConstraints()
    }

    //MARK: --------------------UI--------------------
    func setUI() {
//        contentV.style.GradientLeftToRight(left: "#FED000".zm.hex(), right: "#FE9800".zm.hex())
        snp.makeConstraints { make in
            make.height.equalTo(72)
        }
    }
    
    func addConstraints() {
     
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        contentV.style.Gradient(colors: ["#FED000".zm.hex().cgColor, "#FE9800".zm.hex().cgColor], locations: [0.1, 1], startPoint: CGPoint(x: 0, y: 0.5), endPoint: CGPoint(x: 1, y: 0.5))

    }
    
    //MARK: --------------------methods--------------------
    func bindAction() {
        
    }
    //MARK: --------------------delegate--------------------

}
